// 基础设置  班级信息维护
import request from '@/utils/request'
// 配置公共的header
const headers = {
  'Content-Type': 'application/json;charset=utf-8'
}
const url = '/web/bjxxb/'
/**
 * @name addBj
 * @description 添加班级
 * @author cjs1992
 * @date 2019-11-13 16:48:55
 */
export function addBj(data = {}) {
  return request({
    method: 'post',
    url: `${url}addBj`,
    data: data,
    ...headers
  })
}
/**
 * @name delBjByIds
 * @description 删除
 * @author cjs1992
 * @date 2019-11-13 16:50:26
 */
export function delBjByIds(data = {}) {
  return request({
    method: 'post',
    url: `${url}delBjByIds`,
    data: data,
    ...headers
  })
}
/**
 * @name editBjById
 * @description 编辑
 * @author cjs1992
 * @date 2019-11-13 16:51:21
 */
export function editBjById(data = {}) {
  return request({
    method: 'post',
    url: `${url}editBjById`,
    data: data,
    ...headers
  })
}
/**
 * @name editBjStatusById
 * @description 编辑班级状态
 * @author cjs1992
 * @date 2019-11-13 16:52:21
 */
export function editBjStatusById(data = {}) {
  return request({
    method: 'post',
    url: `${url}editBjStatusById`,
    data: data,
    ...headers
  })
}
/**
 * @name getBjById
 * @description 通过班级id获取班级详情
 * @author cjs1992
 * @date 2019-11-13 16:53:17
 */
export function getBjById(data = {}) {
  return request({
    method: 'get',
    url: `${url}getBjById`,
    params: data
  })
}
/**
 * @name getBjListByCon
 * @description 获取班级列表
 * @author cjs1992
 * @date 2019-11-13 16:54:13
 */
export function getBjListByCon(data = {}) {
  return request({
    method: 'post',
    url: `${url}getBjListByCon`,
    data: data,
    ...headers
  })
}
/**
 * @name getBjTjByCon
 * @description 根据条件获取班级统计信息
 * @author cjs1992
 * @date 2019-11-13 16:55:10
 */
export function getBjTjByCon(data = {}) {
  return request({
    method: 'post',
    url: `${url}getBjTjByCon`,
    data: data,
    ...headers
  })
}
/**
 * @name mergeBjByIds
 * @description 合并班级信息
 * @author cjs1992
 * @date 2019-11-13 17:04:20
 */
export function mergeBjByIds(data = {}) {
  return request({
    method: 'post',
    url: `${url}mergeBjByIds`,
    data: data,
    ...headers
  })
}
